package base.day23;

import java.io.FileOutputStream;
import java.io.IOException;

public class MyIo3 {
    public static void main(String[] args) {
        FileOutputStream fos=null;
        try {
//            System.out.println(2/0);
            fos=new FileOutputStream("E:\\text\\d.txt");
            fos.write(97);
        }catch(Exception e){
            e.printStackTrace();
        }finally{
            if (fos!=null){
                try {
                    fos.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }else {
                System.out.println("fos=null!!!");
            }
        }
    }
}
